import request from '@/utils/request'

// 收货地址列表
export function getAddressLists(query) {
    return request({
        url: '/joining/busin.Procure/getAddressLists',
        method: 'post',
        params: query
    })
}

// 收货地址详情
export function getAddressInfo(query) {
    return request({
        url: '/joining/busin.Procure/getAddressInfo',
        method: 'post',
        params: query
    })
}

// 添加/修改 收货地址
export function setAddressInfo(query) {
    return request({
        url: '/joining/busin.Procure/setAddressInfo',
        method: 'post',
        params: query
    })
}
// 收货地址 启用/禁用
// export function setSectorStatus(query) {
//     return request({
//         url: '/joining/busin.Position/setSectorStatus',
//         method: 'post',
//         params: query
//     })
// }
// 删除收货地址
export function delAddres(query) {
    return request({
        url: '/joining/busin.Procure/delAddres',
        method: 'post',
        params: query
    })
}

// 采购商品_收/发货地址 设为默认/取消默认
export function setAddresDefault(query) {
    return request({
        url: '/joining/busin.Procure/setAddresDefault',
        method: 'post',
        params: query
    })
}

//采购商品_订单列表
export function getOrdersLists(query) {
    return request({
        url: '/joining/busin.Procure/getOrdersLists',
        method: 'post',
        params: query
    })
}

// 采购商品_订单详情
export function getOrdersInfo(query) {
    return request({
        url: '/joining/busin.Procure/getOrdersInfo',
        method: 'post',
        params: query
    })
}

// 采购商品_创建订单
export function createOrder(query) {
    return request({
        url: '/joining/busin.Procure/createOrder',
        method: 'post',
        params: query
    })
}

// 采购商品_取消订单(未支付订单取消)
export function canceOrder(query) {
    return request({
        url: '/joining/busin.Procure/canceOrder',
        method: 'post',
        params: query
    })
}

// 采购商品_删除订单(已取消订单删除)
export function delOrder(query) {
    return request({
        url: '/joining/busin.Procure/delOrder',
        method: 'post',
        params: query
    })
}

//采购商品_可采购商品列表
export function getGoodsLists(query) {
    return request({
        url: '/joining/busin.Procure/getGoodsLists',
        method: 'post',
        params: query
    })
}

//采购商品_订单支付_获取支付方式
export function getPaymentLists(query) {
    return request({
        url: '/joining/busin.Procure/getPaymentLists',
        method: 'post',
        params: query
    })
}

//采购商品_订单支付_获取支付方式
export function goConfirmPay(query) {
    return request({
        url: '/joining/busin.Procure/confirmPay',
        method: 'post',
        params: query
    })
}

//采购商品_订单支付_获取支付方式
export function getGoodsInfo(query) {
    return request({
        url: '/joining/busin.Procure/getGoodsInfo',
        method: 'post',
        params: query
    })
}

//采购商品_发货订单列表
export function getSendLists(query) {
    return request({
        url: '/joining/busin.Procure/getSendLists',
        method: 'post',
        params: query
    })
}

//采购商品_确认收货
export function confirmTake(query) {
    return request({
        url: '/joining/busin.Procure/confirmTake',
        method: 'post',
        params: query
    })
}